package com.sftz.modules.minapp.searchcourse.dto;

import lombok.Data;

/**
 * 首页-课程检索
 * @author   王宏伟
 * @Date	 2018年12月18日 	 
 */
@Data
public class SearchCourseDto {

	private Integer id;
	private String courseName;
	private String picture;
	private Integer charge;
	private Integer studyCount;
	private Double actualPrice;
	private String price;
	private Integer count;

	/**转换录入人图标*/
	public String getPrice() {
		if (this.charge == 0) {
			this.price = "免费";
		} else {
			this.price = "￥" + this.actualPrice;
		}
		return this.price;
	}

}
